package com.hcb.micro.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hcb.micro.dao.interfaceClass.ManagerMapper;
import com.hcb.micro.dto.Manager;
import com.hcb.micro.service.IManagerService;

@Service("ManagerService")
public class ManagerServiceImpl implements IManagerService {

	@Autowired
	ManagerMapper managerMapper;
	
	@Override
	public int deleteByPrimaryKey(Integer id) {
		return managerMapper.deleteByPrimaryKey(id);
	}

	@Override
	public int insert(Manager record) {
		return managerMapper.insert(record);
	}

	@Override
	public int insertSelective(Manager record) {
		return managerMapper.insertSelective(record);
	}

	@Override
	public Manager selectByPrimaryKey(Integer id) {
		return managerMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(Manager record) {
		return managerMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKey(Manager record) {
		return managerMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Manager selectByName(String name) {
		return managerMapper.selectByName(name);
	}

	@Override
	public Manager selectByMallUuid(String mallUuid) {
		return managerMapper.selectByMallUuid(mallUuid);
	}

	@Override
	public List<Manager> selectByPara(Map<String, Object> para) {
		return managerMapper.selectByPara(para);
	}

}
